package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import org.antlr.v4.runtime.misc.NotNull;
import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.ExpressionContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ColumnNameOrderContext;

public class ColumnNameOrderVisitor extends AbsCQLParserBaseVisitor<ColumnNameOrderContext> {

	private ColumnNameOrderContext context = null;

	public ColumnNameOrderVisitor() {
		context = new ColumnNameOrderContext();
	}

	@Override
	protected ColumnNameOrderContext defaultResult() {
		return context;
	}

	@Override
	public ColumnNameOrderContext visitExpression(@NotNull ExpressionContext ctx) {
		ExpressionVisitor visitor = new ExpressionVisitor();
		context.setExpression(visitor.visit(ctx));
		return context;
	}

}
